package zhu.areas.team.service;

import java.util.List;




import zhu.areas.team.dao.TeamXieDAOImpl;
import zhu.areas.team.data.Team;



public class TeamXieServiceImpl implements ITeamXieService{
	
	private TeamXieDAOImpl teamXieDAO;
	private List<Team> teamlist;
	
	public boolean addTeam(Team team) {
		teamXieDAO.save(team);//		
		return true;
	}
	public List<Team> findByTeamAuState(Integer teamAuState){
		return (List<Team>) teamXieDAO.findByTeamAustate(teamAuState);
	}
	public void deleteteam(Team team){
		
		teamXieDAO.delete(team);
	}

	public boolean updateTeam(Team team){
		
		return false;
		
	};
	
	public TeamXieDAOImpl getTeamXieDAO() {
		return teamXieDAO;
	}
	public void setTeamXieDAO(TeamXieDAOImpl teamXieDAO) {
		this.teamXieDAO = teamXieDAO;
	}
	public List<Team> getTeamlist() {
		return teamlist;
	}
	public void setTeamlist(List<Team> teamlist) {
		this.teamlist = teamlist;
	}
	
	
	
	

	
	
	}
	
	
	


